/**
 * @(#)Text3.java
 *
 *
 * @author 
 * @version 1.00 2011/10/30
 */
import java.util.*;

public class heart_monitor {
	//Private Atributes
	private static Random generator;			//Random number generator
	private static boolean started = false;		//
	
	public static double get_heart_rate(){
    	if (started == false){
    		generator = new Random(System.currentTimeMillis());
    		started = true;
    	}
    	double rv = 0;
    	for (int i = 0; i <12; i ++) rv += generator.nextDouble();
    	rv -= 6;
    	rv = rv / 2 + (100 + treadmill.get_current_speed() * 80 / treadmill.maxSpeed + treadmill.get_current_incline() * 20/ treadmill.maxIncline);
    	return rv;
    }
    
}